package org.example.consumer.config;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DemoListener {

    @RabbitListener(queues = RabbitConfig.QUEUE)
    public void receive(String msg) {
        System.out.println("收到消息："+ msg);
    }
}